﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LJ.WebApi.Mvc;


public class WebApiConfig
{

    /// <summary>
    /// API接口路径的前缀，默认api
    /// </summary>
    public string ApiPrefix { get; set; } = "api";

    public List<SecurityWebApiConfig> Securitys { get; set; } = [
           //new()
           //{
           //  //Id="Bearer",
           //  //Name="Authorization",
           //  //Description="Value Bearer {token}"
           //}
    ];
}



public class SecurityWebApiConfig
{
    /// <summary>
    /// Id
    /// </summary>
    public string Id { get; set; } = string.Empty;
    /// <summary>
    /// Type
    /// </summary>
    public string Name { get; set; } = string.Empty;
    /// <summary>
    /// Description 
    /// </summary>
    public string Description { get; set; } = string.Empty;
}
